-- GENERATED SPELL FOR [Coilfang Warrior] --


function spell0_17802(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(31403,pUnit)
pUnit:RegisterEvent('Sorts_17802', 660, 1)
end

function spell1_17802(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_17802', 548, 1)
end

function spell2_17802(pUnit, Event) --@Mortal Blow,n/a--
pUnit:FullCastSpellOnTarget(35105,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17802', 12275, 1)
end

function Sorts_17802(pUnit, Event)
local choix_sorts_17802 = math.random(0, 2)
if choix_sorts_17802 == 0 then
pUnit:RegisterEvent('spell0_17802', 1, 1)
end
if choix_sorts_17802 == 1 then
pUnit:RegisterEvent('spell1_17802', 1, 1)
end
if choix_sorts_17802 == 2 then
pUnit:RegisterEvent('spell2_17802', 1, 1)
end
end

function mob17802_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17802', math.random(1500, 3000), 1)
end

function mob17802_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17802_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17802_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17802, 1, 'mob17802_Action')
RegisterUnitEvent(17802, 2, 'mob17802_Leave')
RegisterUnitEvent(17802, 3, 'mob17802_Kill')
RegisterUnitEvent(17802, 4, 'mob17802_Die')
